Release 10.1A: OpenEdge Data Management:
SQL Reference
EXECUTE
Executes the statement specified in statement_name.
Syntax
statement_nameName of the prepared SQL statement.
structure_nameName of an SQL descriptor area (SQLDA).
Example
Notes
- A statement must be processed with a
PREPAREstatement before it can be processed with anEXECUTEstatement.- A prepared statement can be executed multiple times in the same transaction. Typically each call to the
EXECUTEstatement supplies a different set of host variables.- If there is no
DESCRIPTORin theUSINGclause, theEXECUTEstatement is restricted to the number of variables specified in the host variable list. The number and type of the variables must be known at compile time. The host variables must be declared in theDECLARE SECTIONbefore they can be used in theUSINGclause of theEXECUTEstatement.- If there is a
DESCRIPTORin theUSINGclause, the program can allocate space for the input host variables at run time.Related statements
EXECUTE IMMEDIATE, PREPARE
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |